# def func( x ):
#     if x <2:
#         return 1
#     else:
#         return func(x-1)*x
# x = 5
# y = func(x)
# print(y)
#
# a = [1,2,3,4]
# print(a[1:])
# a = [0,1,2,3,4,5,6,7,8,9]
# print(a[::1])
# print(a[::2])
# print(a[::3])
# a = [1,2,3,4,5]
# for i in range(0,len(a)):
#     print(a[i])
#     a[i]=a[i]+10
# print(a)
# a = [1,2,3,4,5]
# a.append(8)
# a.append("heihei")
# print(a)
# a = [1,2,3,4,5]
# a.insert(1,"haha")
# print(a)
#
def func(x):
    while x!=0:
        print(x%10)
        x = x/10
x = 123
func(x)
